package com.framework.entity;

import com.framework.entity.base.BapBaseTimeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * @Description: 角色实体类
 * @Author: JamesYao
 * @DateTime: 2024/2/19 16:22
 */

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "role")
public class Role extends BapBaseTimeEntity {

    @Comment("角色名称")
    @Column(nullable = false,length = 32)
    @NotNull(message="角色名称不能为空")
    private String name;

}
